@layout("/common/_form.html",{js:["/assets/nanSellAnnounce/nanSellAnnounce_addOfficial.js"],plugins:["ue"],css:["/assets/common/module/formSelects/formSelects-v4.css"]}){
<style>
    .layui-upload-img{
        max-height: 120px;
        margin-right: 10px;
        margin-bottom: 10px;
    }
</style>
<form class="layui-form" id="nanSellAnnounceOfficialForm" lay-filter="nanSellAnnounceOfficialForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">发布官方帖子</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="isOfficial" type="hidden" value="true"/>
                    <input name="checkStatus" type="hidden" value="1"/>

                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">发布账号</label>
                        <div class="layui-input-block">
                            <select id="userId" name="userId" lay-verify="required">
                                <option value="">-请选择发布账号-</option>
                            </select>
                        </div>
                    </div>

                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">标题</label>
                        <div class="layui-input-block">
                            <input id="name" name="name" placeholder="请输入标题" type="text" class="layui-input" lay-verify="required" required />
                        </div>
                    </div>

                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">封面图片</label>
                        <div class="layui-input-block">
                            <button type="button" class="layui-btn" id="uploadThumb">
                                <i class="layui-icon">&#xe67c;</i>上传图片
                            </button>
                            <div id="thumbPreview" style="margin-top: 10px;"></div>
                            <input type="hidden" id="thumb" name="thumb" />
                            <div class="layui-form-mid layui-word-aux">支持多张图片，用逗号分隔</div>
                        </div>
                    </div>

                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">内容</label>
                        <div class="layui-input-block">
                            <script id="container" name="content" type="text/plain"></script>
                        </div>
                    </div>

                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">排序</label>
                        <div class="layui-input-block">
                            <input id="sort" name="sort" placeholder="请输入排序，越大越靠前，默认999" type="number" class="layui-input" value="999" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>

</form>

@}
